package com.dao;

import com.entity.*;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2018/11/30 0030.
 */
public interface BillDao {

    int insertBill(@Param("userId") Integer userId, @Param("uuid") String uuid, @Param("money") BigDecimal money, @Param("types") Integer types, @Param("description") String description);

    int updateUserMoney1(@Param("userId")Integer userId,@Param("money")BigDecimal money);

    BigDecimal findUserMoney(@Param("userId") Integer userId);

    List<UserFreezeMoneyInfo> findFreezeMoneyTime(@Param("userId")Integer userId);

    int deleteFreezeMoney(@Param("id")Integer id);

    int updateUserMoney(@Param("userId")Integer userId,@Param("money")BigDecimal money);

    BigDecimal freezeMoney(@Param("userId")Integer userId);

    List<BillInfo> findBill1(@Param("userId") Integer userId, @Param("limit") Integer limit);

    List<BillInfo> findBill2(@Param("userId") Integer userId, @Param("limit") Integer limit);

    List<BannerInfo> findBanner(@Param("type") Integer type);

    List<AnnouncementInfo> findAnnouncement(@Param("type") Integer type);

    int findUserP(@Param("userId") Integer userId, @Param("pid") Integer pid);

    int updateUserP(@Param("userId") Integer userId, @Param("pid") Integer pid);

    int insertUserP(@Param("userId") Integer userId, @Param("pid") Integer pid);

    List<TeacherValueInfo> findCerTeacherValueList(@Param("page") Integer page, @Param("length") Integer length, @Param("search") String search);

    int findCerTeacherValueListCount(@Param("search") String search);

    int editTeacherValue(@Param("id") Integer id, @Param("teacherValue") Integer teacherValue);

    int findRigLoginCount(@Param("id") Integer id);

    List<RefundRecordInfo> findRefundRecord(@Param("page") Integer page, @Param("length") Integer length);

    int findRefundRecordCount();

    int updateRefundRecord1(@Param("recordId") Integer recordId, @Param("type") Integer type);

    int updateRefundRecord2(@Param("refundId") Integer refundId, @Param("type") Integer type);

    int findOpenIdCon(@Param("openId")String openId);

    int findordersum(@Param("userId") Integer userId,@Param("type")Integer type);

}
